package cn.edu.scau.cmi.wuzhenzhou.adapter;

import java.util.Collections;
import java.util.Comparator;
import java.util.List;

public class SortUtil {
	public List<Integer> sortInt(List<Integer> intList){
		Collections.sort(intList, new Comparator<Integer>() {
			public int compare(Integer num1, Integer num2) {
				int diff = num1 - num2;
				if(diff > 0) return 1;
				else if(diff < 0) return -1; return 0;
			}
		});
		return intList;
	}
}
